package com.polymathcoder.dpastry.api.environment;

import com.polymathcoder.dpastry.api.Callback;
import com.polymathcoder.dpastry.api.CallbackRunnableFuture;

import java.util.concurrent.Callable;
import java.util.concurrent.Future;

/**
 * Created by IntelliJ IDEA.
 * User: Drew
 * Date: Jul 10, 2010
 * Time: 2:57:55 PM
 * To change this template use File | Settings | File Templates.
 */
public interface FlexProcessor {
    public <V> Future<V> doTask(Callable<V> task);

    public <V> Future<V> doTask(Callable<V> task, Callback<V> callback);

    public <V> Future<V> doTask(CallbackRunnableFuture<V> task);
}
